package com.hgw.Demo01_SimpleFactory.extend;

/**
 * Data time:2021/12/11 16:09
 * StudentID:2019112118
 * Author:hgw
 * Description: 咖啡类 ，充当抽象产品类
 */
abstract public class Coffee {
    public abstract String getName();

    // 加糖
    public void addSugar() {
        System.out.println("加糖");
    }

    // 加奶
    public void addMilk() {
        System.out.println("加奶");
    }
}
